package com.dahua.messageconsumer.sql;

import com.dahua.common.domain.Fault;
import lombok.Data;

@Data
public class SaveFaultData {
    private Fault fault;
    private boolean isEquipmentFault;
    private int sampleseconds;
    private Fault lastFault;

    public SaveFaultData(Fault fault, boolean isEquipmentFault, int sampleseconds) {
        setFault(fault);
        setEquipmentFault(isEquipmentFault);
        setSampleseconds(sampleseconds);
    }
    public SaveFaultData(Fault fault, boolean isEquipmentFault, int sampleseconds, Fault lastFault) {
        setFault(fault);
        setEquipmentFault(isEquipmentFault);
        setSampleseconds(sampleseconds);
        setLastFault(lastFault);
    }
}
